############################################################################
#
# Makefile for RuleInfo Service
#
#############################################################################
include $(CRM_SRC)/env/common.mk

CFLAGS = $(CFLAGS_COMMON) -DWITH_NONAMESPACES 
LDFLAGS = $(LDFLAGS_COMMON)

all: clean  RuleInfo

CSMSCLIENT =  ruleinfoRuleInfoSynSVProxy.o ruleinfoC.o envC.o stdsoap2.o
CSMSCLIENTA = ruleinfoRuleInfoSynSVProxy.o ruleinfoC.o envC.o stdsoap2.o

ruleinfo: $(CSMSCLIENT)
	$(CC)  -o $@ $(CSMSCLIENT) $(LDFLAGS)
	chmod 777 $@

RuleInfo: $(CSMSCLIENTA)
	$(AR) -r -v ruleinfo.a $? 
clean :
	rm -f *.o
	rm -f *.a
	rm -f ruleinfo

gen:
	soapcpp2 -i -C -x -n -I /usr/share/gsoap-linux-2.7/share/gsoap/import RuleInfoSyncSV.h
	soapcpp2 -penv env.h
	
cg:
	rm -f soap*
	rm -f CsmsService*
	rm -f *.wsdl
	rm -f *.nsmap
	rm -f *.xsd

install:
	cp *.h* $(CRM_INCLUDE)/ppm_client/
	cp *.a $(CRM_BIN)/
